Announcement

Collapse
No announcement yet.

Error Could not open `espo` cache

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Could not open `espo` cache

    Hello,

    I have upgraded my espo version from 7.0.9 to 10. After that, I got an error like "error 500" with a blank page. Web console showing "Could not open `espo` cache."

    I've attached a screenshot for reference. I appreciate your prompt support for the same.
    Cheers!
    Nishan.

  • #2
    what does the espoCRM error log tell?

    Comment


    • #3
      shalmaxb

      [2022-04-16 18:58:02] ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Permission denied for data/cache/application/cronLastRunTime.php" at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php line 286 {"exception":"[object] (Espo\\Core\\Exceptions\\Error(code: 500): Permission denied for data/cache/application/cronLastRunTime.php at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php:286)"} []
      [2022-04-16 18:59:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/autoload.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/autoload.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 18:59:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 18:59:01] ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Permission denied for data/cache/application/cronLastRunTime.php" at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php line 286 {"exception":"[object] (Espo\\Core\\Exceptions\\Error(code: 500): Permission denied for data/cache/application/cronLastRunTime.php at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php:286)"} []
      [2022-04-16 19:00:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/autoload.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/autoload.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 19:00:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 19:00:01] ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Permission denied for data/cache/application/cronLastRunTime.php" at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php line 286 {"exception":"[object] (Espo\\Core\\Exceptions\\Error(code: 500): Permission denied for data/cache/application/cronLastRunTime.php at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php:286)"} []
      [2022-04-16 19:01:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/autoload.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/autoload.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 19:01:01] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied {"code":2,"message":"touch(): Unable to create file data/cache/application/cronLastRunTime.php because Permission denied","file":"/var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php","line":644} []
      [2022-04-16 19:01:01] ERROR: Uncaught Exception Espo\Core\Exceptions\Error: "Permission denied for data/cache/application/cronLastRunTime.php" at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php line 286 {"exception":"[object] (Espo\\Core\\Exceptions\\Error(code: 500): Permission denied for data/cache/application/cronLastRunTime.php at /var/www/html/devcrm/application/Espo/Core/Utils/File/Manager.php:286)"} []
      Cheers!
      Nishan.

      Comment


      • #4
        Hi, might be something wrong with your server permissions, as said in the mentioned file (manager.php) after line 644:

        /**
        * Returning true will cause situations when files are created with
        * a wrong ownership. This is a trade-off for being able to run
        * Espo under a user that is neither webserver-user nor root. A file
        * will be created owned by a user running the process.
        */

        Because of this a cron job could not be executed. Have an aditional look into your server logs, might help.

        Comment

        Working...
        X